package com.ruoyi.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product.mapper.ReplyLikeMapper;
import com.ruoyi.product.domain.ReplyLike;
import com.ruoyi.product.service.IReplyLikeService;

/**
 * 回复点赞Service业务层处理
 * 
 * @author guoguoa
 * @date 2025-01-07
 */
@Service
public class ReplyLikeServiceImpl implements IReplyLikeService 
{
    @Autowired
    private ReplyLikeMapper replyLikeMapper;

    /**
     * 查询回复点赞
     * 
     * @param id 回复点赞主键
     * @return 回复点赞
     */
    @Override
    public ReplyLike selectReplyLikeById(Integer id)
    {
        return replyLikeMapper.selectReplyLikeById(id);
    }

    /**
     * 查询回复点赞列表
     * 
     * @param replyLike 回复点赞
     * @return 回复点赞
     */
    @Override
    public List<ReplyLike> selectReplyLikeList(ReplyLike replyLike)
    {
        return replyLikeMapper.selectReplyLikeList(replyLike);
    }

    /**
     * 新增回复点赞
     * 
     * @param replyLike 回复点赞
     * @return 结果
     */
    @Override
    public int insertReplyLike(ReplyLike replyLike)
    {
        return replyLikeMapper.insertReplyLike(replyLike);
    }

    /**
     * 修改回复点赞
     * 
     * @param replyLike 回复点赞
     * @return 结果
     */
    @Override
    public int updateReplyLike(ReplyLike replyLike)
    {
        return replyLikeMapper.updateReplyLike(replyLike);
    }

    /**
     * 批量删除回复点赞
     * 
     * @param ids 需要删除的回复点赞主键
     * @return 结果
     */
    @Override
    public int deleteReplyLikeByIds(Integer[] ids)
    {
        return replyLikeMapper.deleteReplyLikeByIds(ids);
    }

    /**
     * 删除回复点赞信息
     * 
     * @param id 回复点赞主键
     * @return 结果
     */
    @Override
    public int deleteReplyLikeById(Integer id)
    {
        return replyLikeMapper.deleteReplyLikeById(id);
    }
}
